package com.hlingsoft.cms.entity.vo;

import com.hlingsoft.cms.constant.OrderInfoConstant;

import java.util.Date;

/**
 * Created by selbylei on 2015/5/26.
 */
public class OrderDetailVo {
    private long id;
    private String orderId;
    private String name;
    private int status;
    private String showStatus;
    private Double payPrice;
    private int payType;    //支付方式
    private String showPayType;
    private Double shippingPrice;  //配送费
    private int shippingType;  //配送方式
    private String showShippingType;
    private String shippingTime;         //配送时间
    private String shippingContact;      //联系人
    private String shippingAddress;    //配送地址
    private int isCancel;        //0.不能取消 1.可以取消


    public Double getShippingPrice() {
        return shippingPrice;
    }

    public void setShippingPrice(Double shippingPrice) {
        this.shippingPrice = shippingPrice;
    }

    public int getIsCancel() {
        return isCancel;
    }

    public void setIsCancel(int isCancel) {
        this.isCancel = isCancel;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getShowStatus() {
        if (this.status == OrderInfoConstant.WAITPAY) {
            return "待付款";
        } else if (this.status == OrderInfoConstant.CANCEL) {
            return "已取消";
        }else if(this.status==OrderInfoConstant.OVERDUE){
            return "已过期";
        } else if(this.status==OrderInfoConstant.CHECK){
            return "审核中";
        } else if (this.status==OrderInfoConstant.WAITDELIVER){
            return "已支付";
        }

        return "";

    }

    public void setShowStatus(String showStatus) {
        this.showStatus = showStatus;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Double getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(Double payPrice) {
        this.payPrice = payPrice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getShowPayType() {
        if (this.payType == OrderInfoConstant.COD) {
            return "货到付款";
        } else if (this.payType == OrderInfoConstant.ALIPAY) {
            return "支付宝支付";
        }
        return "";
    }

    public void setShowPayType(String showPayType) {
        this.showPayType = showPayType;
    }

    public int getShippingType() {
        return shippingType;
    }

    public void setShippingType(int shippingType) {
        this.shippingType = shippingType;
    }

    public String getShowShippingType() {
        if (this.shippingType == OrderInfoConstant.HOME) {
            return "送货上门";
        } else if (this.shippingType == OrderInfoConstant.SELF) {
            return "门店自取";
        }
        return "";
    }

    public void setShowShippingType(String showShippingType) {
        this.showShippingType = showShippingType;
    }

    public String getShippingTime() {
        return shippingTime;
    }

    public void setShippingTime(String shippingTime) {
        this.shippingTime = shippingTime;
    }

    public String getShippingContact() {
        return shippingContact;
    }

    public void setShippingContact(String shippingContact) {
        this.shippingContact = shippingContact;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }
}
